 

package setProperty;
import java.util.*;
import javax.servlet.http.*;
import javax.servlet.*;


public class setProperty {
  String name = null;
  String id = null;
  String psw = null;
  String type = null;
  boolean cus = false;
  boolean sale = false;
  boolean rg = false;
  boolean sec = false;
  boolean cw = false;
  boolean cw1 = false;
  boolean bedit = false;
  boolean binput = false;

  boolean cedit = false;
  boolean cinput = false;

  boolean sedit = false;
  boolean sinput = false;

  boolean sfedit = false;
  boolean sfinput = false;

  boolean fedit = false;
  boolean finput = false;

  boolean today = false;





  boolean service = false;
  float   scale;
 
  public void setName (String nm) {
    this.name = nm;
  }

  public String getName () {
    return this.name;
  }
 public void setPsw (String nm) {
    this.psw = nm;
  }

  public String getPsw () {
    return this.psw;
  }
  public void setId (String id) {
    this.id= id;
  }

  public String getId () {
    return this.id;
  }
  public void setType (String type) {
    this.type= type;
  }

   public String getType () {
    return this.type;
  }
  
  public void setCus (boolean cus) {
    this.cus= cus;
  }

  public boolean getCus() {
    return this.cus;
  }
public void setSale (boolean sale) {
    this.sale= sale;
  }

  public boolean getSale() {
    return this.sale;
  }
public void setRg (boolean rg) {
    this.rg= rg;
  }

  public boolean getRg() {
    return this.rg;
  }
public void setCw (boolean cw) {
    this.cw= cw;
  }

  public boolean getCw() {
    return this.cw;
  }
  public void setCw1 (boolean cw1) {
    this.cw1= cw1;
  }

  public boolean getCw1() {
    return this.cw1;
  }
public void setSec (boolean sec) {
    this.sec= sec;
  }

  public boolean getSec() {
    return this.sec;
  }
public void setBedit (boolean bedit) {
    this.bedit= bedit;
  }

  public boolean getBedit() {
    return this.bedit;
  }

public void setBinput (boolean binput) {
    this.binput= binput;
  }

  public boolean getBinput() {
    return this.binput;
  }

public void setCedit (boolean cedit) {
    this.cedit= cedit;
  }

  public boolean getCedit() {
    return this.cedit;
  }
public void setCinput (boolean cinput) {
    this.cinput= cinput;
  }

  public boolean getCinput() {
    return this.cinput;
  }

public void setSedit (boolean sedit) {
    this.sedit= sedit;
  }

  public boolean getSedit() {
    return this.sedit;
  }

public void setSinput (boolean sinput) {
    this.sinput= sinput;
  }

  public boolean getSinput() {
    return this.sinput;
  }

public void setFedit (boolean fedit) {
    this.fedit= fedit;
  }

  public boolean getFedit() {
    return this.fedit;
  }

public void setFinput (boolean finput) {
    this.finput= finput;
  }

  public boolean getFinput() {
    return this.finput;
  }

public void setSfedit (boolean sfedit) {
    this.sfedit= sfedit;
  }

  public boolean getSfedit() {
    return this.sfedit;
  }

public void setSfinput (boolean sfinput) {
    this.sfinput= sfinput;
  }

  public boolean getSfinput() {
    return this.sfinput;
  }

public void setService (boolean serv) {
    this.service= serv;
  }

  public boolean getService() {
    return this.service;
  }

public void setToday (boolean today) {
    this.today= today;
  }

  public boolean getToday() {
    return this.today;
  }

public void setScale (float scale) {
    this.scale= scale;
  }

  public float getScale() {
    return this.scale;
  }
  
  
  public String getParameter(HttpServletRequest request,String para)
								throws Exception  {
		String temp = "";
		temp = request.getParameter(para);
		if (temp == null)
			temp = "";
		temp = new String(temp.getBytes("ISO8859_1"),"GBK");
		return temp;	
	}
  /*public void processRequest (HttpServletRequest request) {

    // Get the name and e-mail.
    this.processError = false;
    if (name == null || name.equals("")) setName(request.getParameter ("name"));  
    if (email == null || email.equals("")) setEmail(request.getParameter ("email"));
    if (name == null || email == null ||
		name.equals("") || email.equals("")) {
      this.processError = true;
      return;
    }

    // Get the date.
    String dateR = request.getParameter ("date");
    if (dateR == null) date = JspCal.getCurrentDate ();
    else if (dateR.equalsIgnoreCase("next")) date = JspCal.getNextDate ();
    else if (dateR.equalsIgnoreCase("prev")) date = JspCal.getPrevDate ();

    entries = (Entries) table.get (date);
    if (entries == null) {
      entries = new Entries ();
      table.put (date, entries);
    }

    // If time is provided add the event.
	String time = request.getParameter("time");
    if (time != null) entries.processRequest (request, time);
  }

  public boolean getProcessError () {
    return this.processError;
  }*/
}






